<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : facturacion
    Created on : 24/03/2011, 09:21:48 AM
    Author     : Jonathan Duque Ramos
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ice="http://www.icesoft.com/icefaces/component"
      >
    <h:head>
        <title>..::NAGUI SABET::..</title>
        <link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css"/>
    </h:head>
    <h:body>
        <ice:form>
            <ice:panelCollapsible expanded="true" toggleOnClick="false">
                <f:facet name="header">
                    <div align="center">
                        <ice:outputText value="..::VENDEDOR::.."></ice:outputText>
                    </div>
                </f:facet>
                <div align="center">
                    <ice:panelGrid columns="2">
                        <ice:outputConnectionStatus></ice:outputConnectionStatus>
                        <ice:panelCollapsible>
                            <f:facet name="header">
                                <div align="center">
                                    <ice:outputText value="..::PANEL DE NAVEGACIÔN::.." ></ice:outputText>
                                </div>
                            </f:facet>
                            <ice:panelGrid columns="3">
                                <ice:commandButton image="IMAGES/Home-icon48.png" action="#{facturacionManagedBean.irInicio}">
                                </ice:commandButton>
                                <ice:commandButton image="IMAGES/Client-2-icon48.png" action="#{facturacionManagedBean.irVendedor}">
                                </ice:commandButton>
                                <ice:commandButton image="IMAGES/Bank-Check-icon48.png" action="#{facturacionManagedBean.irFactura}">
                                </ice:commandButton>
                            </ice:panelGrid>
                        </ice:panelCollapsible>
                    </ice:panelGrid>
                    <br/>
                    <ice:panelGrid columns="2">
                        <ice:graphicImage url="IMAGES/Client-2-icon128.png" />
                        <ice:panelGrid columns="1">
                            <ice:panelGrid columns="2">

                                <ice:outputText value="CEDULA / NIT"></ice:outputText>
                                <ice:panelGrid columns="2">
                                    <ice:inputText binding="#{vendedorManagedBean.hitCedulaNit}"
                                                   maxlength="12"></ice:inputText>
                                    <ice:commandButton value="BUSCAR" 
                                                       image="IMAGES/search-database-icon32.png"
                                                       binding="#{vendedorManagedBean.hcbBuscar}"
                                                       action="#{vendedorManagedBean.buscarVendedor}">
                                        <ice:outputText value="BUSCAR"></ice:outputText>
                                    </ice:commandButton>
                                </ice:panelGrid>
                                <ice:outputText value="NOMBRE COMPLETO"></ice:outputText>
                                <ice:inputText binding="#{vendedorManagedBean.hitNombreCompleto}"></ice:inputText>
                                <ice:outputText value="DIRECCIÔN"></ice:outputText>
                                <ice:inputText binding="#{vendedorManagedBean.hitDireccion}"></ice:inputText>
                                <ice:outputText value="TELÊFONO"></ice:outputText>
                                <ice:inputText binding="#{vendedorManagedBean.hitTelefono}"></ice:inputText>
                            </ice:panelGrid>
                            <br></br>
                            <ice:panelGrid columns="4">
                                <ice:commandButton value="REGISTRAR" 
                                                   image="IMAGES/add-to-database-icon48.png"
                                                   binding="#{vendedorManagedBean.hcbRegistrar}"
                                                   action="#{vendedorManagedBean.registrarVendedor}">
                                    <ice:outputText value="REGISTRAR"></ice:outputText>
                                </ice:commandButton>
                                <ice:commandButton value="MODIFICAR"
                                                   image="IMAGES/Database-Upload-icon48.png"
                                                   rendered="false"
                                                   binding="#{vendedorManagedBean.hcbModificar}">
                                    <ice:outputText value="MODIFICAR"></ice:outputText>
                                </ice:commandButton>
                                <ice:commandButton value="ELIMINAR" 
                                                   image="IMAGES/remove-from-database-icon48.png"
                                                   rendered="false"
                                                   binding="#{vendedorManagedBean.hcbEliminar}">
                                    <ice:outputText value="ELIMINAR"></ice:outputText>
                                </ice:commandButton>
                            </ice:panelGrid>
                        </ice:panelGrid>
                    </ice:panelGrid>
                    <br></br>
                    <ice:messages></ice:messages>
                </div>
            </ice:panelCollapsible>
        </ice:form>
    </h:body>
</html>